<div class="box">
        <!-- box / title -->
        <div class="title">
                <h5>Sell In</h5>
                <ul class="links">
                        <!-- <li><a href="<?=base_url().'index.php/sell/newsell'?>">Create Sell In</a></li>
                        <li><a href="<?=base_url().'index.php/sell'?>">List Sell In</a></li> -->
                        <!-- <li><a href="<?=base_url().'index.php/consignment/new'?>">Create Consignment</a></li>
                        <li><a href="<?=base_url().'index.php/consignment'?>">Consignment List</a></li> -->
                </ul>
        </div>
        <!-- end box / title -->
		
		<?php
        $msg = $this->session->flashdata('message');
          if($msg){
              echo'<div id="box-messages">
                        <div class="messages">
                                <div id="message-success" class="message message-success">
                                        <div class="image">
                                                <img src="'. base_url() .'file/shell/smooth/resources/images/icons/success.png" alt="Success" height="32" />
                                        </div>
                                        <div class="text">
                                                <h6>'. $msg .'</h6>
                                        </div>
                                        <div class="dismiss">
                                                <a href="#message-success"></a>
                                        </div>
                                </div>
                        </div>
                </div>';
        }
        ?>
		
        <?php
			if (!isset($jenis))
			{
		?>
        <div class="table">
               
                <base href="<?php echo base_url() ?>" />
				
                <!--<link type="text/css" rel="stylesheet" href="css/demo_table.css" />-->
                <div id="ajaxLoadAni">
                    <img src="file/smooth/images/ajax-loader.gif" alt="Ajax Loading Animation" />
                    <span>Loading...</span>
                </div>
                
                <?=$this->load->view("grid-sell");?>
                
        </div>
        <?php
			}
			else
			{
		?>
        <div class="table">
                
                <?php
                if($jenis == "create"){
                        $this->load->view('f-sell-create');
                }
                elseif ($jenis =="consignment") {
                        $this->load->view('f-sell-consignment');
                }
				// elseif($jenis == "chart"){
                        // echo'<iframe src="'.base_url().'index.php/territory/territory_iframe/chart" width=100% height=600px>';
                // }
                ?>
                
                
        </div>
		<?php
			}
		?>
</div>